import pymongo


class Mongo:
    def __init__(self):
        pass
    def send_msg(self):
        client = pymongo.MongoClient("mongodb://mongo_user:659f827a6fd5c5a7b4bd029d406d283b@10.128.137.21:60025,10.128.137.21:60026,10.128.137.21:60027/admin")
        db = client.admin
        object_id = db.test.insert_one({"x": 10}).inserted_id
        print(object_id)

